package com.gump.essay.modules.ums.service.impl;

import org.springframework.stereotype.Service;

import javax.annotation.Resource;

import com.gump.essay.modules.ums.model.UmsResource;
import com.gump.essay.modules.ums.mapper.UmsResourceMapper;
import com.gump.essay.modules.ums.service.UmsResourceService;

/**
 * @auther zzc
 * @date 2020/9/10 16:20
 * 概要：
 */

@Service
public class UmsResourceServiceImpl implements UmsResourceService {

    @Resource
    private UmsResourceMapper umsResourceMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return umsResourceMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(UmsResource record) {
        return umsResourceMapper.insert(record);
    }

    @Override
    public int insertSelective(UmsResource record) {
        return umsResourceMapper.insertSelective(record);
    }

    @Override
    public UmsResource selectByPrimaryKey(Long id) {
        return umsResourceMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(UmsResource record) {
        return umsResourceMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(UmsResource record) {
        return umsResourceMapper.updateByPrimaryKey(record);
    }

}
